package main

import (
	"fmt"
	"github.com/gofiber/fiber"
	"gowork/shoppingCart/controller"
	"gowork/shoppingCart/utils"
)

func main()  {
	w := new(utils.Worker)
	for i:=1; i<=15; i++ {
		fmt.Println(w.GetId())
	}

	app := fiber.New()

	scc := new(controller.ShoppingCartController)
	app.Post("/addShoppingCart", scc.AddShoppingCart)
	app.Post("/close", scc.Close)
	app.Post("/queryUserShoppingCardCache", scc.QueryUserShoppingCardCache)

	app.Listen(2937)
}
